Cytosim  PI
Cytoskeleton Simulator
Monitor Class Reference

Public Member Functions

 Monitor (unsigned i, real r)
 set the maximum number of iterations, and the residual threshold
 
virtual ~Monitor ()
 destructor
 
void reset ()
 reset interation count and achieved residual
 
void operator++ ()
 increment iteration count
 
int flag () const
 the termination code
 
int iterations () const
 iteration count
 
real residual () const
 last achieved residual
 
bool converged () const
 true if achieve residual < residual threshold
 
virtual bool finished (unsigned size, real const *x)
 calculate residual from x and return true if threshold is achieved
 
virtual bool finished (int f, unsigned size, real const *x)
 calculate residual from x and return true if threshold is achieved